package com.itany.book.conf;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class TestMvcConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/showlist").setViewName("userlist");
        registry.addViewController("/showlogin").setViewName("login");
        registry.addViewController("/supplier_examine").setViewName("supplier_examine");
        registry.addViewController("/supplier_platform").setViewName("supplier_platform");
        registry.addViewController("/userlist").setViewName("userlist");
        registry.addViewController("/orderlist").setViewName("orderlist");
        registry.addViewController("/booklist").setViewName("booklist");
        registry.addViewController("/manager").setViewName("manager");
        registry.addViewController("/permission").setViewName("permission");
        registry.addViewController("/role").setViewName("role");

    }
}
